% !TEX TS-program = lualatex
% !TEX encoding = UTF-8

% This is a simple template for a LuaLaTeX document using gregorio scores.

\documentclass[letterpaper,12pt]{article} % use larger type; default would be 10pt

% usual packages loading:
%\usepackage{luatextra}
%\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % or letterpaper (US) or a5paper or....
\usepackage{gregoriotex} % for gregorio score inclusion
\usepackage{fullpage} % to reduce the margins
\usepackage{anysize} % for marginsize
\usepackage{multicol} % for columns
\usepackage{lettrine} % for drop caps
%\usepackage{wrapfig} % for wrapping figures -- can't get it to work with gregorio
\usepackage{fancyhdr}

% choose the language of the document here
\usepackage[latin,american]{babel}

% If you use usual TeX fonts, here is a starting point:
%\usepackage{palatino}

\input{../gsp-spaces}
\setgrefactor{17}

\usepackage[garamond]{../mypackage}
%\usepackage{fontspec}
% to change the font to something better, you can install the kpfonts package (if not already installed). To do so
% go open the "TeX Live Manager" in the Menu Start->All Programs->TeX Live 2010
%\fontspec[Numbers=OldStyle]{Linux Libertine O}
%\def\greinitialformat#1{{\fontsize{37}{37}\selectfont #1}}
%small > footnotesize > scriptsize > tiny

\marginsize{40pt}{40pt}{40pt}{40pt}
\pagestyle{empty} % no header or footers

% here we begin the document
\begin{document}
\setlength{\columnsep}{18pt}
\setlength{\columnseprule}{1pt}
% The title:
\selectlanguage{latin}

% Here we set the initial font. Change 43 if you want a bigger initial.
\def\greinitialformat#1{%
{\fontsize{36}{36}\selectfont #1}%
}

\def\annot{Grad.}
\def\annottwo{4. E}
{\setinitialspacing{T}

% We type a text in the top right corner of the score:
%\commentary{{\small \emph{Cf. Is. 30, 19 . 30 ; Ps. 79}}}

% and finally we include the score. The file must be in the same directory as this one.
{\centering\Large Palm Sunday.\\}
\bigskip
%\large
\includescore{grad-Tenuisti}}
\bigskip
{\def\annot{Tract.}
\def\annottwo{2. D}
\setinitialspacing{D}
%\large
\includescore{tract-DeusDeusMeus}
}
\vspace{-\baselineskip}
\newcounter{tractvcount}
\newenvironment{tractverses}[1][0]{
% 1 - number to start on
\begin{list}{\arabic{tractvcount}.}{
\setlength\baselineskip{0pt}
\setlength\itemsep{1pt}
\usecounter{tractvcount}
\setlength\parsep{0pt}
\setlength\labelwidth{50pt}\setlength\leftmargin{0pt}\setlength\itemindent{6ex}}
\setcounter{tractvcount}{#1}
}{\end{list}}

\begin{psalmverses}[1]
\item \emph{Longe} a salúte \textbf{mé}a~* vérba delictórum \emph{me}\textbf{ó}rum.
\item \emph{Déus} méus, clamábo per díem, nec ex\textbf{áu}dies~:~* in nócte, et non ad insipiénti\emph{am} \textbf{mí}hi.
\end{psalmverses}
\includescore{tract-DeusDeusMeusV4}
\vspace{-0.7\baselineskip}
\begin{psalmverses}[4]
\item \emph{In te} speravérunt pátres \textbf{nó}stri~:~* speravérunt, et liberá\emph{sti} \textbf{é}os.
\item \emph{Ad te} clamavérunt, et sálvi \textbf{fá}cti sunt~:~* in te speravérunt, et non sunt \emph{con}\textbf{fú}si.
\item \emph{Ego} autem sum vérmis, et non \textbf{hó}mo~: oppróbrium hóminum et abjécti\emph{o} \textbf{plé}bis.
%\item \emph{Omnes}, qui vidébant me,~† asperna\textbf{bán}tur me~:~* locúti sunt lábiis et mové\emph{runt} \textbf{cá}put.
\end{psalmverses}
\includescore{tract-DeusDeusMeusV8}
\vspace{-1.6\baselineskip}
\begin{psalmverses}[8]
\item \emph{Sperá}vit in Dómino, erípiat \textbf{é}um~:~* sálvum fáciat éum, quóniam \emph{vult} \textbf{é}um.
\item \emph{Ipsi} véro consideravérunt et conspexérunt me~:~† divisérunt síbi vestiménta \textbf{mé}a,~* et super véstem méam misé\emph{runt} \textbf{sór}tem.
\item \emph{Líbe}ra me de óre le\textbf{ó}nis~:~* et a córnibus unicornuórum humilitá\emph{tem} \textbf{mé}am.
\item \emph{Qui ti}métis Dóminum, laudáte \textbf{é}um~:~* univérsum sémen Jácob, magnificá\emph{te} \textbf{é}um.
\item \emph{Annun}tiábitur Dómino generátio ven\textbf{tú}ra~:~* et annuntiábunt caéli justíti\emph{am} \textbf{é}jus.
\item \emph{Pópu}lo, qui na\textbf{scé}tur,~* quem fé\emph{cit} \textbf{Dó}minus.
\end{psalmverses}

\end{document}
